// Copyright DustedPixels.com 2008. All rights reserved.

package com.dustedpixels.common.base;

/**
 * A reference to another object.
 * 
 * @author micapolos@gmail.com (Michal Pociecha-Los)
 */
public interface Reference<T> {
  /**
   * Returns referenced object, may be null.
   * 
   * @return referenced object
   */
  T get();
  
  /**
   * Sets referenced object.
   *  
   * @param object an object, may be null. 
   */
  void set(T object);
}
